/*
 * @Author: liuzehai
 * @Date: 2021-04-22 11:26:20
 * @LastEditTime: 2021-05-11 17:22:08
 * @LastEditors: liuzehai
 * @FilePath: /Card-to-payh5/src/plugins/vant.js
 * @Description: 由liuzehai创建！
 */
// 组件引入；
import Vue from 'vue'
import {
  Button,
  Icon,
  Swipe,
  SwipeItem,
  Lazyload,
  Col,
  Row,
  Field,
  List,
  PullRefresh,
  Dialog,
  Empty,
  Form,
  Picker,
  Popup,
  Calendar,
  Cell,
  CellGroup,
  Toast,
  Search,
  RadioGroup,
  Radio,
  Tabbar,
  TabbarItem,
  NavBar,
  Tag,
  Skeleton,
  Grid,
  GridItem,
  Divider,
  Overlay,
  Tab, Tabs,
  ActionSheet
} from 'vant';

// 全局配置
// 将所有 loading Toast 设置为背景不可点击
Toast.setDefaultOptions({
  forbidClick: true
});
Dialog.setDefaultOptions({
  theme: 'round-button',
  confirmButtonColor: 'linear-gradient(to right, #ff6034, #ee1c25)'
})

// 组件注册；
Vue.use(Button);
Vue.use(Icon);
Vue.use(Col);
Vue.use(Row);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);
Vue.use(Field);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(Dialog);
Vue.use(Empty);
Vue.use(Form);
Vue.use(Picker);
Vue.use(Popup);
Vue.use(Calendar);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Toast);
Vue.use(Search);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(Tag);
Vue.use(Skeleton);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Divider);
Vue.use(Overlay);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(ActionSheet);